﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace RattlerRace
{
    /// <summary>
    /// AUTHOR: TADEJ GRUBER
    /// 
    /// Finnished i guess
    /// </summary>
    public class Clock : Block
    {
        #region Spremenljivke
        private TimeBar timer;

        internal TimeBar Timer
        {
            get { return timer; }
            set { timer = value; }
        }
        #endregion

        #region Konstruktor
        public Clock()
        {
            timer = new TimeBar();
        }
        #endregion

        #region Metode
        /// <summary>
        /// Metoda, ki samo kliče funkcijo ustavi TimeBar, da se začasno ustavi Timer
        /// </summary>
        void endTime()
        {
            timer.stopTimeBar();
        }
        #endregion
    }
}
